package com.example.dou2204.roomdb;

import androidx.room.Database;
import androidx.room.RoomDatabase;

import com.example.dou2204.entity.MoneyEntity;
import com.example.dou2204.entity.VideoEntity;
import com.example.dou2204.entity.VideoRoom;

@Database(entities = {VideoRoom.class, MoneyEntity.class},version = 1,exportSchema = false)
public abstract class AppDatabase extends RoomDatabase {
    abstract VideoDao getVideo();//封装抽象方法，在数据库工具类中实现
    abstract MoneyDao getMoneyDao();
}
